package com.zhg.demo.mybatisdemo.service;

import com.zhg.demo.mybatisdemo.entity.User;
import com.zhg.demo.mybatisdemo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wgw1206798585@vip.qq.com
 * @version 1.0
 * @date 2020-03-14 11:49
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }
}
